﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DingTida.Comnon
{
    public static class timeHelper
    {
        public static int GetMin(DateTime dt)
        {

            var hour = dt.ToString("HH");
            var min = dt.ToString("mm");
            var tm = int.Parse(hour) * 60 + int.Parse(min);
            return tm;
        
        }

    }
}
